Make erc-fill-wrap depend on scrolltobottom
authorF. Jason Park <jp@neverwas.me>
Mon, 13 Nov 2023 20:07:36 +0000 (12:07 -0800)
committerF. Jason Park <jp@neverwas.me>
Sat, 17 Feb 2024 03:58:35 +0000 (19:58 -0800)
commit9668b4f97c2fc6bfff83258861d455a6d02516a8
treeacdcb79a80d37ea2d8a7859ddd79809b11b1a10c
parent1a36d52413c784750f650ccba95436e4f76ab104
Make erc-fill-wrap depend on scrolltobottom

* lisp/erc/erc-fill.el (erc-fill-mode): Add reference to
`erc-fill-wrap-mode' in doc string.
(erc--fill-wrap-scrolltobottom-exempt-p): New variable to allow tests
involving `fill-wrap' to opt out of having to enable `scrolltobottom'.
(erc-fill--wrap-ensure-dependencies): Warn and enable
`erc-scrolltobottom-mode' if necessary.
(erc-fill-wrap-mode): Mention workaround for automatically enabling
`scrolltobottom'.
* test/lisp/erc/erc-fill-tests.el (erc-fill-tests--wrap-populate):
Exempt tests from `scrolltobottom' dependency.
* test/lisp/erc/resources/erc-scenarios-common.el: Load `erc-fill'
when compiling.
(erc-scenarios-common--print-trace): Exempt tests using `fill-wrap'
from the `scrolltobottom' dependency by making
`erc--fill-wrap-scrolltobottom-exempt-p' non-nil during test runs.
(Bug#60936)
lisp/erc/erc-fill.el
test/lisp/erc/erc-fill-tests.el
test/lisp/erc/resources/erc-scenarios-common.el